﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CareerAdd.ascx.cs" Inherits="Admin_Career_CareerAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls"
TagPrefix="FTB" %>

<div>
     <uc1:Alert ID="MessAlert1" runat="server" />
</div>
<div style ="float:right; font-style:italic; color:Red; padding-right:20px     ">Các trường đánh dấu * bắt buộc phải có thông tin</div>
<table>
    <tr>
        <td>
        
        <div>
    <b><asp:Label ID="lblLanguage" Width ="80px" Text ="Ngôn ngữ" CssClass="text" runat ="server"     ></asp:Label></b>
    <asp:DropDownList ID="ddlLanguage" runat="server" CssClass="boxnormal" Enabled = "false" AutoPostBack="true"  OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
    </asp:DropDownList></div>
<div>
   <asp:Label ID="lblTitle" runat="server"  Width ="80px"  CssClass="text" Text ="Tiêu đề"></asp:Label>
   <asp:TextBox ID="txtTitle" runat="server" CssClass="boxlonger" Width="500px"   MaxLength="150" ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
</div>
<div>
    <asp:Label ID="lblCategory"  Width ="80px"  runat="server" CssClass="text" Text ="Danh mục"></asp:Label>
    <asp:DropDownList ID="ddlCategory" CssClass="boxlong"  runat="server">
    </asp:DropDownList>
</div>

 <div>
                 <asp:Label ID="Label1"  Width ="80px"  runat="server" CssClass="text" Text ="Ảnh đại diện"></asp:Label>
                    <input id ="iptImage" runat="server" type="file" size="30"  class="boxlongest"  /><br />
                </div>
                <div ><span style="color:Black; font-style:italic ; padding-left:90px ">* Ảnh đại diện tốt nhất ở độ phân giải 150x105 px. Dung lượng tối đa 2MB.</span></div>
             
        </td>
        
        <td style ="padding-left:50px ">
        <asp:Image runat="server" ID="imgImage"   Height = "105px" BorderWidth="1px" BorderColor="gray"   />
        </td>
    </tr>
</table>


<div style="padding:10px 0px 0px 0px ">
    <b><asp:Label ID="lblInitContent" runat="server"  Width ="100px" Text ="Tóm tắt nội dung" CssClass="text"></asp:Label><span style="color: #ff3333">*</span></b>
</div>
<div style="padding:0px">
 <asp:TextBox ID="txtInitContent" runat="server" CssClass="textbox_multiline"    MaxLength="1999"  TextMode ="MultiLine" ValidationGroup="Input"></asp:TextBox>
</div>
<div style="padding:10px 0px 0px 0px ">
      <b><asp:Label ID="lblContent" Width ="55px" runat="server" CssClass="text" Text="Nội dung" ></asp:Label><span style="color: #ff3333">*</span></b>
</div>
<div>

 <uc2:TextBox id="FTBContent" runat="server" ></uc2:TextBox>
--</div>



<div style="padding:5px 0px 5px 0px ">
    <asp:CheckBox ID="chkDisplayOrder" runat="server" CssClass="text"  Text ="Ưu tiên hiển thị" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <asp:CheckBox ID="chkActive" runat="server" CssClass="text" Checked="true" Text ="Kích hoạt" />
</div>
<div style="padding: 20px 20px 0px 0px ">
    <asp:Button ID ="btnSave" runat="server" Text="Lưu" Width ="80px"   ValidationGroup="Input" OnClick="btnSave_Click1" /> &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnCancel" runat="server" Text="Quay lại" Width ="80px"    OnClick="btnCancel_Click"  />   
    </div>


<asp:RequiredFieldValidator ID="rfvTitle" runat="server" SetFocusOnError="true"   ControlToValidate="txtTitle" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvInitContent" runat="server" SetFocusOnError="true"   ControlToValidate="txtInitContent" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>


<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="Input" ShowSummary="False" />